home *** CD-ROM | disk | FTP | other *** search
- Path: news-m01.ny.us.ibm.net!usenet
- From: schlaep@ibm.net (Patrick Schlaepfer)
- Newsgroups: comp.lang.c++
- Subject: Reading text file
- Date: Mon, 04 Mar 1996 16:35:33 GMT
- Message-ID: <4hf5ld$1sgu@news-s01.ny.us.ibm.net>
- NNTP-Posting-Host: slip139-92-18-142.pt.uk.ibm.net
- X-Newsreader: Forte Free Agent 1.0.82
-
- What's the easiest way of reading a text file, such
- as
-
- Text1, 122.44, 234.3,231,231
- Text2, 234.32, 344,2,231,122
- | | | | |
- char1 float float float float
-
- into variables.
-
- The fields are seperated by a comma.
-
- I tried with fopen maybe CFileClass will also do the
- job. I could read the whole line, but then I came
- into trouble.
-
- Regards
- Pat
-
- ------------------------------------------------
- _/ _/ _/_/_/ Patrick Schlaepfer
- _/_/ _/ _/ Schulstrasse 12
- _/ _/_/ _/ CH-89262 Bergdietikon
- _/ _/ _/ does it! patrick@schlaepferag.ch
-
-